from flask import Flask
from flask import request

app = Flask(__name__)

@app.route('/login',methods=['Get'])

def login1():
    user_name = request.args['userName']
    pwd = request.args['PWD']
    return '您好，%s! 欢迎使用flask!'%(user_name)

if __name__ == '__main__':
    app.run('127.0.0.1',5001,debug=True)

